<?php
namespace app\guarantee\controller;
use app\common\controller\Common; //跨模块调用   
class Base  extends Common
{
  public function initialize()
    {
        parent::initialize();

    }
//判断用户是否登陆
protected function isLogin(){
  if(!session('uid')){
    return $this->redirect('@user/login');
  }
 
  if($this->user['status'] ==0){
//当前用户审核中
    $this->error('当前用户审核中...','/');
  }elseif($this->user['status'] ==-1){
      //当前用户已被禁止登陆
      $this->error('当前用户已被禁止登陆...','/');

  }
 }

}